package com.micro.modual.entity;

import javax.persistence.Id;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * <h1>系统部门表表 micro_system_dept</h1>
 *
 * @author levelcoder
 * @date 2020-08-04 00:11:10
 */
@ApiModel(description = "系统部门表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "micro_system_dept")
public class SystemDept implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键编号")
    private Long id;


    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称")
    private String deptName;


    /**
     * 部门编号
     */
    @ApiModelProperty(value = "部门编号")
    private String deptCode;


    /**
     * 上级部门编号
     */
    @ApiModelProperty(value = "上级部门编号")
    private String parentCode;


    /**
     * 上级部门名称
     */
    @ApiModelProperty(value = "上级部门名称")
    private String parentName;


    /**
     * 部门排序
     */
    @ApiModelProperty(value = "部门排序")
    private Integer deptSort;


    /**
     * 部门层级
     */
    @ApiModelProperty(value = "部门层级")
    private Integer deptLevel;


    /**
     * 是否删除 1.正常 2.删除
     */
    @ApiModelProperty(value = "是否删除 1.正常 2.删除")
    private Byte delFlag;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
